﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using com.vs.DataAccess;
using com.vs.DataAccess.DO;
using com.vs.General;
using com.vs.General.RF;
using com.vs.Receiving.BL;
using com.vs.Inventory.BL;

namespace com.vs.RF.Web.receiving
{
    public class CheckInQtyEntry : RFDisplayPage
    {
        protected ItemDO itmDO = null;
        protected DataTable dtUM = null;
        protected int iBaseQty = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            go();
        }

        protected override void initData()
        {
            try
            {
                Session.Remove(RFSupport.CONTAINER_COUNT);
                Session.Remove(RFSupport.CONTAINER_NUMBER);
                Session.Remove(RFSupport.CONTAINER_QUANTITY_LIST);

                itmDO = (ItemDO)Session[RFSupport.ITEM_DO];
                dtUM = ItemManager.GetItemUOMIntoTable(rfSess, itmDO.ITEM, itmDO.COMPANY, true);
            }
            catch (Exception ex)
            {
                ExceptionManager.LogException(rfSess, ex);
                this.stErrorMessage = ex.Message;
            }
        }
    }
}
